package com.jt.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(1)
public class SpringAOP2 {
    @Around("@annotation(com.jt.anno.Lyl)")
    public Object around (ProceedingJoinPoint joinPoint) throws Throwable {

        System.out.println("开始b");
        Object result = joinPoint.proceed();
        System.out.println("结束b");
        return result;
    }
}
